package com.xdf.whiteaccount.dao;

import org.springframework.stereotype.Repository;
import java.util.List;
import com.xdf.whiteaccount.entity.DyeGreyMain;
import com.xdf.whiteaccount.utils.Example;
import org.apache.ibatis.annotations.Param;

/**
 * @Description : 由代码生成器生成
 * @Author : chanchaw
 * @Date :  2023-12-15 16:05:38
 */
@Repository
public interface DyeGreyMainMapper {
    int insert(DyeGreyMain record);

    int insertSelective(DyeGreyMain record);

    int multiInsert(List<DyeGreyMain> list);

    int updateByPrimaryKey(DyeGreyMain record);

    int updateByPrimaryKeySelective(DyeGreyMain record);

    // 根据主键删除
    int deleteByPrimaryKey(Integer id);
    // 根据主键查询
    DyeGreyMain selectByPrimaryKey(Integer id);

    List<DyeGreyMain> selectAll();

    int save(DyeGreyMain record);
    int multiSave(List<DyeGreyMain> list);

    //================= 下面是 Example 代码 ==================
    List<DyeGreyMain> selectByExample(@Param("example") Example example);
    int updateByExampleSelective(@Param("record") DyeGreyMain record,@Param("example") Example example);
    int insertByExampleSelective(@Param("record") DyeGreyMain record,@Param("example") Example example);
    int deleteByExample(@Param("example") Example example);

    DyeGreyMain getNext(Integer id);
    DyeGreyMain getPrev(Integer id);
    DyeGreyMain getFirst();
    DyeGreyMain getLast();
    //=================以上是自动生成的代码，自定义代码请写在下面==================
}